<?php
/**
 * Moved Permanently Exception
 * Throw this exception when the resource has been moved permanently.
 *
 * Official HTTP Definition:
 * The requested resource has been assigned a new permanent URI and any future
 * references to this resource SHOULD use one of the returned URIs. Clients with
 * link editing capabilities ought to automatically re-link references to the
 * Request-URI to one or more of the new references returned by the server,
 * where possible. This response is cacheable unless indicated otherwise.
 *
 * The new permanent URI SHOULD be given by the Location field in the response.
 * Unless the request method was HEAD, the entity of the response SHOULD contain
 * a short hypertext note with a hyperlink to the new URI(s).
 *
 * If the 301 status code is received in response to a request other than GET or
 * HEAD, the user agent MUST NOT automatically redirect the request unless it
 * can be confirmed by the user, since this might change the conditions under
 * which the request was issued. 
 * 
 * @package     Visi
 * @subpackage  Exceptions
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2010 Luke Visinoni <luke.visinoni@gmail.com>
 * @version     $Id$
 * @todo        Implement this in the application. Make the app actually return
 *              the correct response headers when this is thrown.
 */
class Visi_Controller_Response_Exception_MovedPermanently extends Visi_Controller_Response_Exception_Redirect {

    public $code = 301;
    
    public $message = 'Moved Permanently';

}